<div class="box-title has-cl"><h1>订单信息</h1></div>
<table width="100%" class="ta-h">
  <tbody>
    <tr>
      <td width="60">订单号：</td>
      <td width="350"><?php e_h($ord['sn'])?></td>
      <td>下单时间：<?php e_h($ord['time'])?></td>
    </tr>
    <tr>
      <td>支付方式：</td>
      <td><?php e_h($ord['pay_way'])?></td>
      <td></td>
    </tr>
    <tr>
      <td>交易状态：</td>
      <td><?php echo $state[$ord['state']];?></td>
      <td></td>
    </tr>
  </tbody>
</table>
<a class="button_16 icon-16-calendar" onClick="$(this).next().slideToggle()"></a><table width="100%" style="display:none">
    <?php foreach($flowR as $v){?>
    <tr>
      <td width="60"><?php e_h($v['user_name'])?></td><td width="130"><?php echo $v['time']?></td>
      <td><?php e_h($v['note'])?></td>
    </tr>
    <?php }?>
 </table>


<div class="box-i">
<div class="b-h has-a"><h2 class="fl-l">快递跟踪</h2></div>
<div class="b-p">
  <p>快递公司：<?php e_h($ord['expre_name'])?></p>
  <p>运单号码：<?php e_h($ord['expre_code'])?></p>
</div>
</div>

<div class="box-i">
<div class="b-h has-a"><h2 class="fl-l">收货地址</h2></div>
<div class="b-p">
  <p>收件人：<?php e_h($ord['to_compellation'])?></p>
  <p>地址：<?php e_h($ord['to_address'])?></p>
  <p>电话：<?php e_h($ord['to_tel'])?></p>
</div>
</div>

<div class="box-i">
<table width="100%" class="ta-h">
  <caption class="b-h"><h2>商品清单</h2></caption>
  <tbody>
    <?php foreach($detailR as $v){  ?>
    <tr>
      <td><a href="<?php echo url::g('u=cgoods\v&id='. $v['goods_id'])?>" target="_blank"><?php e_h($v['name'])?></a></td>
      <td><?php echo $v['num']?> x <?php echo $v['money']?></td>
    </tr>
    <?php }?>
  </tbody>
</table>
</div>

<div class="box-i">
<div class="b-p">
   <p><span class="font-big">客户留言：</span><?php e_h($ord['note'])?></p>
   
   <div class="txt-a-r">
     
     <p>运费：<?php echo $ord['expre_fee'];?></p>
     <p class="font-big">订单总金额：<b class="price">￥<?php echo $ord['money'];?></b></p>
     <?php if($ord['money']!=$ord['pay_money']){?><p class="font-big">优惠后：<b class="price">￥<?php echo $ord['pay_money'];?></b></p><?php }?>
   	 <?php if($ord['state']==1){?><p><a href="?u=cshop\pay\index&id=<?php echo $ord['id']?>"><button type="button" class="submit">去付款</button></a></p><?php }?>
   </div>
</div>
</div>
